<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>状态平滑的动画</title>
    <link rel="stylesheet" href="../public.css">
    <style>
        @keyframes panoramic {
            to{background-position: 100% 0;}
        }
        .panoramic{
            width: 150px;
            height: 150px;
            margin: 0 auto;
            background: url(./4f796a7bbabc3fbd701b008f489f486f.jpeg);
            background-size: auto 100%;
            animation: panoramic 10s linear infinite alternate;
            animation-play-state: paused;
        }
        .panoramic:hover,.panoramic:focus{
            animation-play-state: running;
        }
    </style>
</head>
<body>
    <div class="content">
        <h1></h1>
        <div class="panoramic">

        </div>
    </div>
</body>
</html>